package com.sky.mapper;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    //条件查询该用户购物车
    List<ShoppingCart> list(ShoppingCart shoppingCart);

    //为该购物车中的商品的数量加1
    void updateTime(ShoppingCart shoppingCart);

    //为购物车添加新数据
    void add(ShoppingCart shoppingCart);

    //删除购物车中一个商品
    void delShoppingCart(ShoppingCart shoppingCart);
}
